package com.gdteam.test;

import org.apache.tapestry5.ioc.Registry;
import org.apache.tapestry5.ioc.RegistryBuilder;
import org.junit.After;
import org.junit.Before;

import com.gdteam.kernel.main.KernelModule;

public class KernelRegistry {

    protected Registry registry;
    
    @Before
    public void init() {
        RegistryBuilder builder = new RegistryBuilder();
        builder.add(KernelModule.class);
        this.registry = builder.build();
    }
    
    @After
    public void destroy() {
        this.registry.cleanupThread();
        this.registry.shutdown();
    }    
    
}
